import { RouteRecordRaw } from 'vue-router';
import indexPage from '../pages/indexPage.vue';
import teamPage from '../pages/teamPage.vue';
import userPage from '../pages/userPage.vue';
import searchPage from '../pages/searchPage.vue';
import userEditePage from '../pages/userEditePage.vue';
import searchResultPage from '../pages/searchResultPage.vue';
import LoginPage from '../pages/LoginPage.vue';
import TeamAddPage from '../pages/TeamAddPage.vue';
import UserInfoPage from '../pages/UserInfoPage.vue';
import TeamCreatePage from '../pages/TeamCreatePage.vue';
import TeamJoinPage from '../pages/TeamJoinPage.vue';
import TeamUpdatePage from '../pages/TeamUpdatePage.vue';
import UserReginPage from '../pages/UserReginPage.vue'

export const routes: Array<RouteRecordRaw> = [
  {
    path: '',
    meta:{
      title: '伙伴匹配',
    },
    component: indexPage,
  },
  {
    path: '/',
    meta:{
      title: '伙伴匹配',
    },
    component: indexPage,
  },
  {
    path: '/login',
    meta:{
      title: '登录',
    },
    component: LoginPage,
  },
  {
    path: '/index',
    meta:{
      title: '伙伴匹配',
    },
    component: indexPage,
  },
  {
    path: '/team',
    meta:{
      title: '找队伍',
    },
    component: teamPage,
  },
  {
    path: '/user',
    meta:{
      title: '个人中心',
    },
    component: userPage,
  },
  {
    path: '/search',
    meta:{
      title: '找伙伴',
    },
    component: searchPage
  },
  {
    path: '/user/edite',
    meta:{
      title: '编辑信息',
    },
    component: userEditePage
  },
  {
    path: '/search/result',
    meta:{
      title: '找伙伴',
    },
    component: searchResultPage
  },
  {
    path: '/team/add',
    meta:{
      title: '创建队伍',
    },
    component: TeamAddPage
  },
  {
    path: '/userInfo',
    meta:{
      title: '个人中心',
    },
    component: UserInfoPage
  },
  {
    path: '/createTeam',
    meta:{
      title: '我创建的队伍',
    },
    component: TeamCreatePage
  },
  {
    path: '/joinedTeam',
    meta:{
      title: '我加入的队伍',
    },
    component: TeamJoinPage
  },
  {
    path: '/updateTeam',
    meta:{
      title: '编辑队伍信息',
    },
    component: TeamUpdatePage
  },
  {
    path: '/regin',
    meta:{
      title: '注册用户',
    },
    component: UserReginPage
  }
];
